{% assign lang = page.lang | default: site.default_lang %}
{% assign locales = site.data.locales[lang] %}
{% assign footer = locales.footer%}
<footer class="g-footer">
  <div class="g-container">
    <div class="g-left">
      <section class="links">
        {{ footer.driver }}
        {% if site.version %} (<a href="https://github.com/zhonger/jekyll-theme-H2O-ac/releases/tag/v{{ site.version }}"
          target="_blank" class="extlinks">v{{ site.version }}</a>){% endif %}
        {% if site.supports.webify %} & <a href="https://webify.cloudbase.net/" target="_blank"
          class="extlinks">CloudBase Webify</a> {% endif %}
      </section>
      <section class="links">{{ site.title }} ©
        <input type="hidden" id="footer-since" value="{{ site.footer.since }}">
        <span id="footer-year"></span>
        {% if site.beian and site.beian != "" %}
        <a href="https://beian.miit.gov.cn/" target="_blank" class="extlinks">{{ site.beian }}</a>
        {% endif %}
        {% if site.moe_beian and site.moe_beian != "" %}
        <a href="https://icp.gov.moe/?keyword={{ site.moe_beian }}" target="_blank" class="extlinks">萌ICP备{{ site.moe_beian }}号</a>
        {% endif %}
        <a href="/rss.xml" target="_blank" aria-label="Terms of Service" class="others">
          <svg class="icon" aria-hidden="true">
            <use xlink:href="#icon-rss"></use>
          </svg> RSS
        </a>
        <a href="/tos" target="_blank" aria-label="Terms of Service" class="others">
          <svg class="icon" aria-hidden="true">
            <use xlink:href="#icon-tos"></use>
          </svg> {{footer.tos.name}}
        </a>
      </section>
      {% if site.busuanzi %}
      <section class="links">
        <span id="busuanzi_container_site_pv">
          <svg class="icon" aria-hidden="true">
            <use xlink:href="#icon-pv"></use>
          </svg> {{ footer.views }}
          {% if site.busuanzi_url %}
          <span id="busuanzi_site_pv">
            {% else %}
            <span id="busuanzi_value_site_pv"></span>
            {% endif %}
            <b>·</b>
          </span>
        </span>
        <span id="busuanzi_container_site_uv">
          <svg class="icon" aria-hidden="true">
            <use xlink:href="#icon-user"></use>
          </svg> {{ footer.visitors }}
          {% if site.busuanzi_url %}
          <span id="busuanzi_site_uv"></span>
          {% else %}
          <span id="busuanzi_value_site_uv"></span>
          {% endif %}
        </span>
      </section>
      {% endif %}
      <section>
        {% if site.alivetime %}
        {{ footer.running.info }}
        <span class="alivetime_days"></span> {{ footer.running.day }}
        <span class="alivetime_hours"></span> {{ footer.running.hour }}
        <span class="alivetime_minutes"></span> {{ footer.running.minute }}
        <span class="alivetime_seconds"></span> {{ footer.running.second }}
        {% endif %}
      </section>
    </div>
    <div class="g-right">
      {% if site.supports.upyun %}
      <section>
        <a href="https://www.upyun.com/?utm_source=lianmeng&utm_medium=referral" target="_blank" class="extlinks">{{
          footer.upyun }} <img src="{{ "/assets/icons/upyun.png" | prepend: site.baseurl }}" class="upyun" alt="upyun" /></a>
      </section>
      {% endif %}
      {% if site.badges.netlify or site.badges.vercel or site.badges.cloudflare %}
      <section class="badges">
        {% if site.badges.netlify %}
        <a href="https://netlify.com" target="_blank" class="netlify" aria-label="netlify">
          <img src="{{ "/assets/icons/netlify-icon-light.svg" | prepend: site.baseurl }}" alt="netlify">
        </a>
        {% endif %}
        {% if site.badges.vercel %}
        <a href="https://vercel.com" target="_blank" class="vercel" aria-label="vercel">
          <img src="{{ "/assets/icons/vercel-logotype-dark.png" | prepend: site.baseurl }}" alt="vercel">
        </a>
        {% endif %}
        {% if site.badges.cloudflare %}
        <a href="https://www.cloudflare.com" target="_blank" class="cloudflare" aria-label="cloudflare">
          <img src="{{ "/assets/icons/cloudflare-logo.webp" | prepend: site.baseurl }}" alt="cloudflare">
        </a>
        {% endif %}
      </section>
      {% endif %}
      {% if site.badges.foreverblog or site.badges.wormhole or site.badges.travelling or site.badges.notbyAI %}
      <section class="badges">
        {% if site.badges.foreverblog %}
        <a href="https://www.foreverblog.cn/" target="_blank" class="foreverblog" aria-label="foreverblog">
          <img src="{{ "/assets/icons/forever_en_default.png" | prepend: site.baseurl }}" alt="foreverblog">
        </a>
        {% endif %}
        {% if site.badges.wormhole %}
        <a href="https://www.foreverblog.cn/go.html" target="_blank" class="wormhole" aria-label="wormhole">
          <img src="{{ "/assets/icons/wormhole_3.gif" | prepend: site.baseurl }}" alt="" title="穿梭虫洞-随机访问十年之约友链博客">
        </a>
        {% endif%}
        {% if site.badges.travelling %}
        <a href="https://www.travellings.cn/go.html" target="_blank" class="travelling-badge" aria-label="Travelling"
          rel="noopener" title="开往-友链接力">
          <img src="{{ "/assets/icons/travellings.gif" | prepend: site.baseurl }}" alt="开往-友链接力">
        </a>
        {% endif %}
        {% if site.badges.notbyAI %}
        <a href="https://notbyai.fyi/" target="_blank" class="notbyAI" aria-label="notbyAI">
          <img src="{{ "/assets/icons/notbyAI-white.png" | prepend: site.baseurl }}" alt="Written by Human, Not by AI">
        </a>
        {% endif %}
      </section>
      {% endif %}
    </div>
    {% if site.cnzz %}
    <script
      type="text/javascript">document.write(unescape("%3Cspan id='cnzz_stat_icon_{{ site.cnzz }}'%3E%3C/span%3E%3Cscript src='https://v1.cnzz.com/z_stat.php%3Fid%3D{{ site.cnzz }}%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));</script>
    {% endif %}
  </div>
</footer>
<div class="cookie-tip">
  {{ cookie.cookieconsent_status }} {{ footer.tos.left }}「 <a href="{{ site.tos | prepend: site.baseurl }}">{{
    footer.tos.middle }}</a> 」{{ footer.tos.right }}

  <button id="accept-tos">{{ footer.tos.btn }}</button>
</div>

<section id="tools">
  {% if page.submenu %}
  <div class="tool collection">
    <svg class="icon b1 active" aria-hidden="true">
      <use xlink:href="#icon-submenu"></use>
    </svg>
    <svg class="icon b2" aria-hidden="true">
      <use xlink:href="#icon-exit"></use>
    </svg>
  </div>
  {% endif %}
  {% if page.content contains 'h1' or page.content contains 'h2' or page.content contains 'h3' or page.content contains
  'h4' or page.content contains 'h5' or page.content contains 'h6' and site.toc %}
  <div class="tool toc">
    <svg class="icon b1 active" aria-hidden="true">
      <use xlink:href="#icon-toc"></use>
    </svg>
    <svg class="icon b2" aria-hidden="true">
      <use xlink:href="#icon-exit"></use>
    </svg>
  </div>
  {% endif %}
</section>
<section id="bttb" aria-label="Scroll back to top" class="bttb">
  <div class="tool">
    <svg class="icon top" aria-hidden="true">
      <use xlink:href="#icon-top"></use>
    </svg>
  </div>
</section>